package com.yutou.plug;

import android.content.Context;
import android.content.Intent;

public class Data {
    private String name="uName";
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void startActivity(Context activity){
        System.out.println("准备调用Activity");
        Intent intent=new Intent(activity,ActivityTest.class);
        activity.startActivity(intent);
    }
    public void setListener(MyInterface myInterface){
        myInterface.getName(name);
        name=myInterface.setName();
        myInterface.getName(name);
    }
}